<p>
  <%= f.label :login %><br />
  <%= f.text_field :login %>
</p>
<% if not defined? role or h(role) != 'student' 
#students don't need to put in contact info here
%>
<p>
  <%= f.label :email %><br />
  <%= f.text_field :email %>
</p>
<% end %>
<p>
  <%= f.label :password %><br />
  <%= f.password_field :password %>
</p>
<p>
  <%= f.label :password_confirmation %><br />
  <%= f.password_field :password_confirmation %>
</p>
<% if not defined? role or h(role) != 'student' %>
<%if @user == self.current_user %>
  <input id="user_role" name="user[role]" size="30" type="hidden" value="<%=self.current_user.role%>"/>
<%else%> 
<p>
  User role<br />
  <% if self.current_user.role == 'super'%>
  <%= f.select(:role, [ ['Super User', 'super'],
                        ['Site Coordinator', 'coord'],
                        ['Coach', 'lead'] ]) %>
  <%else %>
	  <%= f.select(:role, [['Coach', 'lead'] ]) %>
  <%end%>
  
</p>
<%end%>
<% if self.current_user.role == 'coord'%>
  <input id="user_email" name="user[site_id]" size="30" type="hidden" value=<%=self.current_user.site_id%>/>  
<% elsif self.current_user.role == 'super'%>
<p>
  <%= f.label :site_id %><br />
  <%= collection_select(:user, :site_id, Site.find(:all), :id, :name, {:prompt => true}) %>
</p>
<% end %>

<%end%>
